package com.cskaoyan.controller.wx;

import com.cskaoyan.model.admin.vo.BaseRespVo;
import com.cskaoyan.model.vx.vo.WxHomeIndexVo;
import com.cskaoyan.service.wx.WxHomeIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hanshuai
 * @version 1.0
 * @description @TODO
 * @date 2021/12/2 16:05
 */
@RestController
@RequestMapping("wx/home")
public class WxHomeIndexController {

    @Autowired
    WxHomeIndexService wxHomeIndexService;

    @RequestMapping("index")
    public BaseRespVo indexShow(){
        WxHomeIndexVo wxHomeIndexVo = wxHomeIndexService.indexShow();
        return BaseRespVo.ok(wxHomeIndexVo);
    }
}
